﻿@using NewRen.Models;
@{
    ViewBag.Title = "新闻";
    Layout = "~/Views/Shared/_Layout.cshtml";
    List<News> news = ViewBag.News as List<News>;
}
<script>
    $("#nav_news").attr("class", "item_selected");
</script>
<div class="banner">
    <div class="container">
        <div class="logo">
            <img src="/Images/logo.png" width="200" height="76">
        </div>
        <div class="search-block">
            <form class="search" action="/Search/Index" style="float:left">
                <input type="text" placeholder="请输入要检索的牛人、牛棚" name="key" class="search-query" />
                <input type="submit" value="搜索" class="search-submit" />
            </form>
        </div>
        <div class="clr"></div>
    </div>
</div>
<div class="sub-menu">
    <div class="container sub-menu-a">
        <a href="/News/Index">新闻</a>
    </div>
</div>
<div class="container bottom-3">
    <div class="col-8">
        <div id="newsLst"></div>
        <div class="more"></div>
    </div>
    <div class="col-3 top20 news-hot-box">
        <div class="head">热门新闻</div>
        <div class="body">
            @foreach (var item in ViewBag.HotNews)
            {
                <a href="/News/Show/@item.ID" class="item">@item.Title</a>
            }
        </div>
    </div>
    <div class="clr"></div>
</div>
